package com.bearhy.jqadmin.common;

import java.util.Date;

public class BaseResult {

    private String msg = "请求成功";
    private Integer status = 200;
    private Date date = new Date();
    private Object data;
    private String url;

    public BaseResult() {
    }

    public BaseResult(String url) {
        this.url = url;
    }

    public BaseResult(Object data) {
        this.data = data;
    }

    public BaseResult(String msg, Integer status) {
        this.msg = msg;
        this.status = status;
    }



    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    /*public void init(Object o){
        this.data = o;
    }

    public void init(String m){
        this.msg = StringUtil.isEmpty(m) ? this.msg : m;
        this.date = new Date();
        this.status = 999;
    }
    public void init(String m,String url){
        this.msg = StringUtil.isEmpty(m) ? this.msg : m;
        this.url = url;
    }
    public void init(String m,Object o){
        this.msg = StringUtil.isEmpty(m) ? this.msg : m;
        this.data = o;
    }*/
}
